const routes = [
  {
    path: '/',
    component: '../layouts/index',
    routes: [
      { path: '/', redirect: '/dashboard' },
      { path: '/dashboard', component: '../pages/dashboard', menuName: 'Dashboard', isInMenu: true },
      {
        path: '/management', menuName: '权限管理', isInMenu: true,
        routes: [
          {
            path: '/management/users',
            menuName: '用户列表',
            component: '../pages/management/users',
          },
          {
            path: '/management/group',
            menuName: '权限角色',
            component: '../pages/management/group',
          },
        ],
      },
    ],
  },
];

module.exports = routes;
